﻿using UnityEngine;
using System.Collections;
using UnityStandardAssets.Characters.FirstPerson;

public class FPC : MonoBehaviour
{
    public StateMachine sm;

    void Awake()
    {
        sm = GameObject.Find("StateMachine1").GetComponent<StateMachine>();
    }

    void FixedUpdate()
    {

    }

    private void OnCollisionEnter(Collision collision)

    {//不会触发
        Debug.Log("触发1");
        if (collision.gameObject.tag == "Spot")
        {
            Debug.Log("触发2");
            sm.tipsToDun();
        }
            
    }

}